package java9_3.shopcart;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class MallManager {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Mall m=new Mall();
        int choice=0;
        User loginUser = null;
        while (true){

            System.out.println("1:show ,2:login,9:tuichu");

            if(loginUser!=null){
                System.out.println("7：管理购物车");
            }
            choice=sc.nextInt();
            if(choice==2){
                loginUser=m.login("xxx","yyy");
            }else if(choice==7){
                if(loginUser==null){
                    continue;
                }
                while(2>1) {
                    System.out.println("1:查看购物车，2：删除，3:清空购物车，4:购买，9：返回");

                }
            }
        }
    }
}
